package com.yc.springcloud.service.impl;

import com.yc.springcloud.dao.AccountDao;
import com.yc.springcloud.service.AccountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author DELL
 * @Date 2024/11/20 16:12
 * @Version 1.0
 */

@Slf4j
@Service
public class AccountServiceImpl implements AccountService {

	@Resource
	private AccountDao accountDao;

	@Override
	public void reduce(Long userId, Integer money) {
		log.info("========seata_account_micro_service-10012 扣减账户余额 start ======");
		accountDao.reduce(userId,money);
		log.info("========seata_account_micro_service-10012 扣减账户余额 end ======");
	}
}
